export default {
  namespaced: true,
  state: {
    // 人脸识别系统发送信号时接收信息
    sendFaceMsg: {},
    // 设备接收的信息
    deviceMsg: {},
    // 人脸9005websocket链接是否断开
    is_five: true
  },
  actions: {
    /**
     * @description 发送人脸识别系统接收信号
     * @param {Object} context
     * @param {*} webSocketMsg
     */
    setSendFaceMsg ({ state, dispatch }, msg) {
      // store 赋值
      state.sendFaceMsg = msg
    },
    /**
     * @description 设备接收的信息
     * @param {Object} context
     * @param {*} webSocketMsg
     */
    setDeviceMsg ({ state, dispatch }, msg) {
      // store 赋值
      state.deviceMsg = msg
    },
    /**
     * @description 设置人脸设备状态
     * @param {Object} context
     * @param {*} webSocketMsg
     */
    setFiveBreakOff ({ state, dispatch }, is_five) {
      // store 赋值
      state.is_five = is_five
    }
  }
}
